{"ast":null,"code":"import { getArrowOffset } from '../../style/placementArrow';\nimport { initMoveMotion, initSlideMotion, initZoomMotion, slideDownIn, slideDownOut, slideUpIn, slideUpOut } from '../../style/motion';\nimport { genComponentStyleHook, mergeToken } from '../../theme/internal';\nimport genButtonStyle from './button';\nimport genStatusStyle from './status';\nimport { genFocusStyle, resetComponent, roundedArrow } from '../../style';\n// =============================== Base ===============================\nconst genBaseStyle = token => {\n  const {\n    componentCls,\n    menuCls,\n    zIndexPopup,\n    dropdownArrowDistance,\n    dropdownArrowOffset,\n    sizePopupArrow,\n    antCls,\n    iconCls,\n    motionDurationMid,\n    dropdownPaddingVertical,\n    fontSize,\n    dropdownEdgeChildPadding,\n    colorTextDisabled,\n    fontSizeIcon,\n    controlPaddingHorizontal,\n    colorBgElevated,\n    boxShadowPopoverArrow\n  } = token;\n  return [{\n    [componentCls]: Object.assign(Object.assign({}, resetComponent(token)), {\n      position: 'absolute',\n      top: -9999,\n      left: {\n        _skip_check_: true,\n        value: -9999\n      },\n      zIndex: zIndexPopup,\n      display: 'block',\n      // A placeholder out of dropdown visible range to avoid close when user moving\n      '&::before': {\n        position: 'absolute',\n        insetBlock: -dropdownArrowDistance + sizePopupArrow / 2,\n        // insetInlineStart: -7, // FIXME: Seems not work for hidden element\n        zIndex: -9999,\n        opacity: 0.0001,\n        content: '\"\"'\n      },\n      [`${componentCls}-wrap`]: {\n        position: 'relative',\n        [`${antCls}-btn > ${iconCls}-down`]: {\n          fontSize: fontSizeIcon\n        },\n        [`${iconCls}-down::before`]: {\n          transition: `transform ${motionDurationMid}`\n        }\n      },\n      [`${componentCls}-wrap-open`]: {\n        [`${iconCls}-down::before`]: {\n          transform: `rotate(180deg)`\n        }\n      },\n      [`\n        &-hidden,\n        &-menu-hidden,\n        &-menu-submenu-hidden\n      `]: {\n        display: 'none'\n      },\n      // =============================================================\n      // ==                          Arrow                          ==\n      // =============================================================\n      // Offset the popover to account for the dropdown arrow\n      [`\n        &-show-arrow&-placement-topLeft,\n        &-show-arrow&-placement-top,\n        &-show-arrow&-placement-topRight\n      `]: {\n        paddingBottom: dropdownArrowDistance\n      },\n      [`\n        &-show-arrow&-placement-bottomLeft,\n        &-show-arrow&-placement-bottom,\n        &-show-arrow&-placement-bottomRight\n      `]: {\n        paddingTop: dropdownArrowDistance\n      },\n      // Note: .popover-arrow is outer, .popover-arrow:after is inner\n      [`${componentCls}-arrow`]: Object.assign({\n        position: 'absolute',\n        zIndex: 1,\n        display: 'block'\n      }, roundedArrow(sizePopupArrow, token.borderRadiusXS, token.borderRadiusOuter, colorBgElevated, boxShadowPopoverArrow)),\n      [`\n        &-placement-top > ${componentCls}-arrow,\n        &-placement-topLeft > ${componentCls}-arrow,\n        &-placement-topRight > ${componentCls}-arrow\n      `]: {\n        bottom: dropdownArrowDistance,\n        transform: 'translateY(100%) rotate(180deg)'\n      },\n      [`&-placement-top > ${componentCls}-arrow`]: {\n        left: {\n          _skip_check_: true,\n          value: '50%'\n        },\n        transform: 'translateX(-50%) translateY(100%) rotate(180deg)'\n      },\n      [`&-placement-topLeft > ${componentCls}-arrow`]: {\n        left: {\n          _skip_check_: true,\n          value: dropdownArrowOffset\n        }\n      },\n      [`&-placement-topRight > ${componentCls}-arrow`]: {\n        right: {\n          _skip_check_: true,\n          value: dropdownArrowOffset\n        }\n      },\n      [`\n          &-placement-bottom > ${componentCls}-arrow,\n          &-placement-bottomLeft > ${componentCls}-arrow,\n          &-placement-bottomRight > ${componentCls}-arrow\n        `]: {\n        top: dropdownArrowDistance,\n        transform: `translateY(-100%)`\n      },\n      [`&-placement-bottom > ${componentCls}-arrow`]: {\n        left: {\n          _skip_check_: true,\n          value: '50%'\n        },\n        transform: `translateY(-100%) translateX(-50%)`\n      },\n      [`&-placement-bottomLeft > ${componentCls}-arrow`]: {\n        left: {\n          _skip_check_: true,\n          value: dropdownArrowOffset\n        }\n      },\n      [`&-placement-bottomRight > ${componentCls}-arrow`]: {\n        right: {\n          _skip_check_: true,\n          value: dropdownArrowOffset\n        }\n      },\n      // =============================================================\n      // ==                         Motion                          ==\n      // =============================================================\n      // When position is not enough for dropdown, the placement will revert.\n      // We will handle this with revert motion name.\n      [`&${antCls}-slide-down-enter${antCls}-slide-down-enter-active&-placement-bottomLeft,\n          &${antCls}-slide-down-appear${antCls}-slide-down-appear-active&-placement-bottomLeft\n          &${antCls}-slide-down-enter${antCls}-slide-down-enter-active&-placement-bottom,\n          &${antCls}-slide-down-appear${antCls}-slide-down-appear-active&-placement-bottom,\n          &${antCls}-slide-down-enter${antCls}-slide-down-enter-active&-placement-bottomRight,\n          &${antCls}-slide-down-appear${antCls}-slide-down-appear-active&-placement-bottomRight`]: {\n        animationName: slideUpIn\n      },\n      [`&${antCls}-slide-up-enter${antCls}-slide-up-enter-active&-placement-topLeft,\n          &${antCls}-slide-up-appear${antCls}-slide-up-appear-active&-placement-topLeft,\n          &${antCls}-slide-up-enter${antCls}-slide-up-enter-active&-placement-top,\n          &${antCls}-slide-up-appear${antCls}-slide-up-appear-active&-placement-top,\n          &${antCls}-slide-up-enter${antCls}-slide-up-enter-active&-placement-topRight,\n          &${antCls}-slide-up-appear${antCls}-slide-up-appear-active&-placement-topRight`]: {\n        animationName: slideDownIn\n      },\n      [`&${antCls}-slide-down-leave${antCls}-slide-down-leave-active&-placement-bottomLeft,\n          &${antCls}-slide-down-leave${antCls}-slide-down-leave-active&-placement-bottom,\n          &${antCls}-slide-down-leave${antCls}-slide-down-leave-active&-placement-bottomRight`]: {\n        animationName: slideUpOut\n      },\n      [`&${antCls}-slide-up-leave${antCls}-slide-up-leave-active&-placement-topLeft,\n          &${antCls}-slide-up-leave${antCls}-slide-up-leave-active&-placement-top,\n          &${antCls}-slide-up-leave${antCls}-slide-up-leave-active&-placement-topRight`]: {\n        animationName: slideDownOut\n      }\n    })\n  }, {\n    // =============================================================\n    // ==                          Menu                           ==\n    // =============================================================\n    [`${componentCls} ${menuCls}`]: {\n      position: 'relative',\n      margin: 0\n    },\n    [`${menuCls}-submenu-popup`]: {\n      position: 'absolute',\n      zIndex: zIndexPopup,\n      background: 'transparent',\n      boxShadow: 'none',\n      transformOrigin: '0 0',\n      'ul,li': {\n        listStyle: 'none'\n      },\n      ul: {\n        marginInline: '0.3em'\n      }\n    },\n    [`${componentCls}, ${componentCls}-menu-submenu`]: {\n      [menuCls]: Object.assign(Object.assign({\n        padding: dropdownEdgeChildPadding,\n        listStyleType: 'none',\n        backgroundColor: colorBgElevated,\n        backgroundClip: 'padding-box',\n        borderRadius: token.borderRadiusLG,\n        outline: 'none',\n        boxShadow: token.boxShadowSecondary\n      }, genFocusStyle(token)), {\n        [`${menuCls}-item-group-title`]: {\n          padding: `${dropdownPaddingVertical}px ${controlPaddingHorizontal}px`,\n          color: token.colorTextDescription,\n          transition: `all ${motionDurationMid}`\n        },\n        // ======================= Item Content =======================\n        [`${menuCls}-item`]: {\n          position: 'relative',\n          display: 'flex',\n          alignItems: 'center',\n          borderRadius: token.borderRadiusSM\n        },\n        [`${menuCls}-item-icon`]: {\n          minWidth: fontSize,\n          marginInlineEnd: token.marginXS,\n          fontSize: token.fontSizeSM\n        },\n        [`${menuCls}-title-content`]: {\n          flex: 'auto',\n          '> a': {\n            color: 'inherit',\n            transition: `all ${motionDurationMid}`,\n            '&:hover': {\n              color: 'inherit'\n            },\n            '&::after': {\n              position: 'absolute',\n              inset: 0,\n              content: '\"\"'\n            }\n          }\n        },\n        // =========================== Item ===========================\n        [`${menuCls}-item, ${menuCls}-submenu-title`]: Object.assign(Object.assign({\n          clear: 'both',\n          margin: 0,\n          padding: `${dropdownPaddingVertical}px ${controlPaddingHorizontal}px`,\n          color: token.colorText,\n          fontWeight: 'normal',\n          fontSize,\n          lineHeight: token.lineHeight,\n          cursor: 'pointer',\n          transition: `all ${motionDurationMid}`,\n          [`&:hover, &-active`]: {\n            backgroundColor: token.controlItemBgHover\n          }\n        }, genFocusStyle(token)), {\n          '&-selected': {\n            color: token.colorPrimary,\n            backgroundColor: token.controlItemBgActive,\n            '&:hover, &-active': {\n              backgroundColor: token.controlItemBgActiveHover\n            }\n          },\n          '&-disabled': {\n            color: colorTextDisabled,\n            cursor: 'not-allowed',\n            '&:hover': {\n              color: colorTextDisabled,\n              backgroundColor: colorBgElevated,\n              cursor: 'not-allowed'\n            },\n            a: {\n              pointerEvents: 'none'\n            }\n          },\n          '&-divider': {\n            height: 1,\n            margin: `${token.marginXXS}px 0`,\n            overflow: 'hidden',\n            lineHeight: 0,\n            backgroundColor: token.colorSplit\n          },\n          [`${componentCls}-menu-submenu-expand-icon`]: {\n            position: 'absolute',\n            insetInlineEnd: token.paddingXS,\n            [`${componentCls}-menu-submenu-arrow-icon`]: {\n              marginInlineEnd: '0 !important',\n              color: token.colorTextDescription,\n              fontSize: fontSizeIcon,\n              fontStyle: 'normal'\n            }\n          }\n        }),\n        [`${menuCls}-item-group-list`]: {\n          margin: `0 ${token.marginXS}px`,\n          padding: 0,\n          listStyle: 'none'\n        },\n        [`${menuCls}-submenu-title`]: {\n          paddingInlineEnd: controlPaddingHorizontal + token.fontSizeSM\n        },\n        [`${menuCls}-submenu-vertical`]: {\n          position: 'relative'\n        },\n        [`${menuCls}-submenu${menuCls}-submenu-disabled ${componentCls}-menu-submenu-title`]: {\n          [`&, ${componentCls}-menu-submenu-arrow-icon`]: {\n            color: colorTextDisabled,\n            backgroundColor: colorBgElevated,\n            cursor: 'not-allowed'\n          }\n        },\n        // https://github.com/ant-design/ant-design/issues/19264\n        [`${menuCls}-submenu-selected ${componentCls}-menu-submenu-title`]: {\n          color: token.colorPrimary\n        }\n      })\n    }\n  },\n  // Follow code may reuse in other components\n  [initSlideMotion(token, 'slide-up'), initSlideMotion(token, 'slide-down'), initMoveMotion(token, 'move-up'), initMoveMotion(token, 'move-down'), initZoomMotion(token, 'zoom-big')]];\n};\n// ============================== Export ==============================\nexport default genComponentStyleHook('Dropdown', (token, _ref) => {\n  let {\n    rootPrefixCls\n  } = _ref;\n  const {\n    marginXXS,\n    sizePopupArrow,\n    controlHeight,\n    fontSize,\n    lineHeight,\n    paddingXXS,\n    componentCls,\n    borderRadiusOuter,\n    borderRadiusLG\n  } = token;\n  const dropdownPaddingVertical = (controlHeight - fontSize * lineHeight) / 2;\n  const {\n    dropdownArrowOffset\n  } = getArrowOffset({\n    sizePopupArrow,\n    contentRadius: borderRadiusLG,\n    borderRadiusOuter\n  });\n  const dropdownToken = mergeToken(token, {\n    menuCls: `${componentCls}-menu`,\n    rootPrefixCls,\n    dropdownArrowDistance: sizePopupArrow / 2 + marginXXS,\n    dropdownArrowOffset,\n    dropdownPaddingVertical,\n    dropdownEdgeChildPadding: paddingXXS\n  });\n  return [genBaseStyle(dropdownToken), genButtonStyle(dropdownToken), genStatusStyle(dropdownToken)];\n}, token => ({\n  zIndexPopup: token.zIndexPopupBase + 50\n}));","map":{"version":3,"names":["getArrowOffset","initMoveMotion","initSlideMotion","initZoomMotion","slideDownIn","slideDownOut","slideUpIn","slideUpOut","genComponentStyleHook","mergeToken","genButtonStyle","genStatusStyle","genFocusStyle","resetComponent","roundedArrow","genBaseStyle","token","componentCls","menuCls","zIndexPopup","dropdownArrowDistance","dropdownArrowOffset","sizePopupArrow","antCls","iconCls","motionDurationMid","dropdownPaddingVertical","fontSize","dropdownEdgeChildPadding","colorTextDisabled","fontSizeIcon","controlPaddingHorizontal","colorBgElevated","boxShadowPopoverArrow","Object","assign","position","top","left","_skip_check_","value","zIndex","display","insetBlock","opacity","content","transition","transform","paddingBottom","paddingTop","borderRadiusXS","borderRadiusOuter","bottom","right","animationName","margin","background","boxShadow","transformOrigin","listStyle","ul","marginInline","padding","listStyleType","backgroundColor","backgroundClip","borderRadius","borderRadiusLG","outline","boxShadowSecondary","color","colorTextDescription","alignItems","borderRadiusSM","minWidth","marginInlineEnd","marginXS","fontSizeSM","flex","inset","clear","colorText","fontWeight","lineHeight","cursor","controlItemBgHover","colorPrimary","controlItemBgActive","controlItemBgActiveHover","a","pointerEvents","height","marginXXS","overflow","colorSplit","insetInlineEnd","paddingXS","fontStyle","paddingInlineEnd","_ref","rootPrefixCls","controlHeight","paddingXXS","contentRadius","dropdownToken","zIndexPopupBase"],"sources":["/data/messenger.client/node_modules/antd/es/dropdown/style/index.js"],"sourcesContent":["import { getArrowOffset } from '../../style/placementArrow';\nimport { initMoveMotion, initSlideMotion, initZoomMotion, slideDownIn, slideDownOut, slideUpIn, slideUpOut } from '../../style/motion';\nimport { genComponentStyleHook, mergeToken } from '../../theme/internal';\nimport genButtonStyle from './button';\nimport genStatusStyle from './status';\nimport { genFocusStyle, resetComponent, roundedArrow } from '../../style';\n// =============================== Base ===============================\nconst genBaseStyle = token => {\n  const {\n    componentCls,\n    menuCls,\n    zIndexPopup,\n    dropdownArrowDistance,\n    dropdownArrowOffset,\n    sizePopupArrow,\n    antCls,\n    iconCls,\n    motionDurationMid,\n    dropdownPaddingVertical,\n    fontSize,\n    dropdownEdgeChildPadding,\n    colorTextDisabled,\n    fontSizeIcon,\n    controlPaddingHorizontal,\n    colorBgElevated,\n    boxShadowPopoverArrow\n  } = token;\n  return [{\n    [componentCls]: Object.assign(Object.assign({}, resetComponent(token)), {\n      position: 'absolute',\n      top: -9999,\n      left: {\n        _skip_check_: true,\n        value: -9999\n      },\n      zIndex: zIndexPopup,\n      display: 'block',\n      // A placeholder out of dropdown visible range to avoid close when user moving\n      '&::before': {\n        position: 'absolute',\n        insetBlock: -dropdownArrowDistance + sizePopupArrow / 2,\n        // insetInlineStart: -7, // FIXME: Seems not work for hidden element\n        zIndex: -9999,\n        opacity: 0.0001,\n        content: '\"\"'\n      },\n      [`${componentCls}-wrap`]: {\n        position: 'relative',\n        [`${antCls}-btn > ${iconCls}-down`]: {\n          fontSize: fontSizeIcon\n        },\n        [`${iconCls}-down::before`]: {\n          transition: `transform ${motionDurationMid}`\n        }\n      },\n      [`${componentCls}-wrap-open`]: {\n        [`${iconCls}-down::before`]: {\n          transform: `rotate(180deg)`\n        }\n      },\n      [`\n        &-hidden,\n        &-menu-hidden,\n        &-menu-submenu-hidden\n      `]: {\n        display: 'none'\n      },\n      // =============================================================\n      // ==                          Arrow                          ==\n      // =============================================================\n      // Offset the popover to account for the dropdown arrow\n      [`\n        &-show-arrow&-placement-topLeft,\n        &-show-arrow&-placement-top,\n        &-show-arrow&-placement-topRight\n      `]: {\n        paddingBottom: dropdownArrowDistance\n      },\n      [`\n        &-show-arrow&-placement-bottomLeft,\n        &-show-arrow&-placement-bottom,\n        &-show-arrow&-placement-bottomRight\n      `]: {\n        paddingTop: dropdownArrowDistance\n      },\n      // Note: .popover-arrow is outer, .popover-arrow:after is inner\n      [`${componentCls}-arrow`]: Object.assign({\n        position: 'absolute',\n        zIndex: 1,\n        display: 'block'\n      }, roundedArrow(sizePopupArrow, token.borderRadiusXS, token.borderRadiusOuter, colorBgElevated, boxShadowPopoverArrow)),\n      [`\n        &-placement-top > ${componentCls}-arrow,\n        &-placement-topLeft > ${componentCls}-arrow,\n        &-placement-topRight > ${componentCls}-arrow\n      `]: {\n        bottom: dropdownArrowDistance,\n        transform: 'translateY(100%) rotate(180deg)'\n      },\n      [`&-placement-top > ${componentCls}-arrow`]: {\n        left: {\n          _skip_check_: true,\n          value: '50%'\n        },\n        transform: 'translateX(-50%) translateY(100%) rotate(180deg)'\n      },\n      [`&-placement-topLeft > ${componentCls}-arrow`]: {\n        left: {\n          _skip_check_: true,\n          value: dropdownArrowOffset\n        }\n      },\n      [`&-placement-topRight > ${componentCls}-arrow`]: {\n        right: {\n          _skip_check_: true,\n          value: dropdownArrowOffset\n        }\n      },\n      [`\n          &-placement-bottom > ${componentCls}-arrow,\n          &-placement-bottomLeft > ${componentCls}-arrow,\n          &-placement-bottomRight > ${componentCls}-arrow\n        `]: {\n        top: dropdownArrowDistance,\n        transform: `translateY(-100%)`\n      },\n      [`&-placement-bottom > ${componentCls}-arrow`]: {\n        left: {\n          _skip_check_: true,\n          value: '50%'\n        },\n        transform: `translateY(-100%) translateX(-50%)`\n      },\n      [`&-placement-bottomLeft > ${componentCls}-arrow`]: {\n        left: {\n          _skip_check_: true,\n          value: dropdownArrowOffset\n        }\n      },\n      [`&-placement-bottomRight > ${componentCls}-arrow`]: {\n        right: {\n          _skip_check_: true,\n          value: dropdownArrowOffset\n        }\n      },\n      // =============================================================\n      // ==                         Motion                          ==\n      // =============================================================\n      // When position is not enough for dropdown, the placement will revert.\n      // We will handle this with revert motion name.\n      [`&${antCls}-slide-down-enter${antCls}-slide-down-enter-active&-placement-bottomLeft,\n          &${antCls}-slide-down-appear${antCls}-slide-down-appear-active&-placement-bottomLeft\n          &${antCls}-slide-down-enter${antCls}-slide-down-enter-active&-placement-bottom,\n          &${antCls}-slide-down-appear${antCls}-slide-down-appear-active&-placement-bottom,\n          &${antCls}-slide-down-enter${antCls}-slide-down-enter-active&-placement-bottomRight,\n          &${antCls}-slide-down-appear${antCls}-slide-down-appear-active&-placement-bottomRight`]: {\n        animationName: slideUpIn\n      },\n      [`&${antCls}-slide-up-enter${antCls}-slide-up-enter-active&-placement-topLeft,\n          &${antCls}-slide-up-appear${antCls}-slide-up-appear-active&-placement-topLeft,\n          &${antCls}-slide-up-enter${antCls}-slide-up-enter-active&-placement-top,\n          &${antCls}-slide-up-appear${antCls}-slide-up-appear-active&-placement-top,\n          &${antCls}-slide-up-enter${antCls}-slide-up-enter-active&-placement-topRight,\n          &${antCls}-slide-up-appear${antCls}-slide-up-appear-active&-placement-topRight`]: {\n        animationName: slideDownIn\n      },\n      [`&${antCls}-slide-down-leave${antCls}-slide-down-leave-active&-placement-bottomLeft,\n          &${antCls}-slide-down-leave${antCls}-slide-down-leave-active&-placement-bottom,\n          &${antCls}-slide-down-leave${antCls}-slide-down-leave-active&-placement-bottomRight`]: {\n        animationName: slideUpOut\n      },\n      [`&${antCls}-slide-up-leave${antCls}-slide-up-leave-active&-placement-topLeft,\n          &${antCls}-slide-up-leave${antCls}-slide-up-leave-active&-placement-top,\n          &${antCls}-slide-up-leave${antCls}-slide-up-leave-active&-placement-topRight`]: {\n        animationName: slideDownOut\n      }\n    })\n  }, {\n    // =============================================================\n    // ==                          Menu                           ==\n    // =============================================================\n    [`${componentCls} ${menuCls}`]: {\n      position: 'relative',\n      margin: 0\n    },\n    [`${menuCls}-submenu-popup`]: {\n      position: 'absolute',\n      zIndex: zIndexPopup,\n      background: 'transparent',\n      boxShadow: 'none',\n      transformOrigin: '0 0',\n      'ul,li': {\n        listStyle: 'none'\n      },\n      ul: {\n        marginInline: '0.3em'\n      }\n    },\n    [`${componentCls}, ${componentCls}-menu-submenu`]: {\n      [menuCls]: Object.assign(Object.assign({\n        padding: dropdownEdgeChildPadding,\n        listStyleType: 'none',\n        backgroundColor: colorBgElevated,\n        backgroundClip: 'padding-box',\n        borderRadius: token.borderRadiusLG,\n        outline: 'none',\n        boxShadow: token.boxShadowSecondary\n      }, genFocusStyle(token)), {\n        [`${menuCls}-item-group-title`]: {\n          padding: `${dropdownPaddingVertical}px ${controlPaddingHorizontal}px`,\n          color: token.colorTextDescription,\n          transition: `all ${motionDurationMid}`\n        },\n        // ======================= Item Content =======================\n        [`${menuCls}-item`]: {\n          position: 'relative',\n          display: 'flex',\n          alignItems: 'center',\n          borderRadius: token.borderRadiusSM\n        },\n        [`${menuCls}-item-icon`]: {\n          minWidth: fontSize,\n          marginInlineEnd: token.marginXS,\n          fontSize: token.fontSizeSM\n        },\n        [`${menuCls}-title-content`]: {\n          flex: 'auto',\n          '> a': {\n            color: 'inherit',\n            transition: `all ${motionDurationMid}`,\n            '&:hover': {\n              color: 'inherit'\n            },\n            '&::after': {\n              position: 'absolute',\n              inset: 0,\n              content: '\"\"'\n            }\n          }\n        },\n        // =========================== Item ===========================\n        [`${menuCls}-item, ${menuCls}-submenu-title`]: Object.assign(Object.assign({\n          clear: 'both',\n          margin: 0,\n          padding: `${dropdownPaddingVertical}px ${controlPaddingHorizontal}px`,\n          color: token.colorText,\n          fontWeight: 'normal',\n          fontSize,\n          lineHeight: token.lineHeight,\n          cursor: 'pointer',\n          transition: `all ${motionDurationMid}`,\n          [`&:hover, &-active`]: {\n            backgroundColor: token.controlItemBgHover\n          }\n        }, genFocusStyle(token)), {\n          '&-selected': {\n            color: token.colorPrimary,\n            backgroundColor: token.controlItemBgActive,\n            '&:hover, &-active': {\n              backgroundColor: token.controlItemBgActiveHover\n            }\n          },\n          '&-disabled': {\n            color: colorTextDisabled,\n            cursor: 'not-allowed',\n            '&:hover': {\n              color: colorTextDisabled,\n              backgroundColor: colorBgElevated,\n              cursor: 'not-allowed'\n            },\n            a: {\n              pointerEvents: 'none'\n            }\n          },\n          '&-divider': {\n            height: 1,\n            margin: `${token.marginXXS}px 0`,\n            overflow: 'hidden',\n            lineHeight: 0,\n            backgroundColor: token.colorSplit\n          },\n          [`${componentCls}-menu-submenu-expand-icon`]: {\n            position: 'absolute',\n            insetInlineEnd: token.paddingXS,\n            [`${componentCls}-menu-submenu-arrow-icon`]: {\n              marginInlineEnd: '0 !important',\n              color: token.colorTextDescription,\n              fontSize: fontSizeIcon,\n              fontStyle: 'normal'\n            }\n          }\n        }),\n        [`${menuCls}-item-group-list`]: {\n          margin: `0 ${token.marginXS}px`,\n          padding: 0,\n          listStyle: 'none'\n        },\n        [`${menuCls}-submenu-title`]: {\n          paddingInlineEnd: controlPaddingHorizontal + token.fontSizeSM\n        },\n        [`${menuCls}-submenu-vertical`]: {\n          position: 'relative'\n        },\n        [`${menuCls}-submenu${menuCls}-submenu-disabled ${componentCls}-menu-submenu-title`]: {\n          [`&, ${componentCls}-menu-submenu-arrow-icon`]: {\n            color: colorTextDisabled,\n            backgroundColor: colorBgElevated,\n            cursor: 'not-allowed'\n          }\n        },\n        // https://github.com/ant-design/ant-design/issues/19264\n        [`${menuCls}-submenu-selected ${componentCls}-menu-submenu-title`]: {\n          color: token.colorPrimary\n        }\n      })\n    }\n  },\n  // Follow code may reuse in other components\n  [initSlideMotion(token, 'slide-up'), initSlideMotion(token, 'slide-down'), initMoveMotion(token, 'move-up'), initMoveMotion(token, 'move-down'), initZoomMotion(token, 'zoom-big')]];\n};\n// ============================== Export ==============================\nexport default genComponentStyleHook('Dropdown', (token, _ref) => {\n  let {\n    rootPrefixCls\n  } = _ref;\n  const {\n    marginXXS,\n    sizePopupArrow,\n    controlHeight,\n    fontSize,\n    lineHeight,\n    paddingXXS,\n    componentCls,\n    borderRadiusOuter,\n    borderRadiusLG\n  } = token;\n  const dropdownPaddingVertical = (controlHeight - fontSize * lineHeight) / 2;\n  const {\n    dropdownArrowOffset\n  } = getArrowOffset({\n    sizePopupArrow,\n    contentRadius: borderRadiusLG,\n    borderRadiusOuter\n  });\n  const dropdownToken = mergeToken(token, {\n    menuCls: `${componentCls}-menu`,\n    rootPrefixCls,\n    dropdownArrowDistance: sizePopupArrow / 2 + marginXXS,\n    dropdownArrowOffset,\n    dropdownPaddingVertical,\n    dropdownEdgeChildPadding: paddingXXS\n  });\n  return [genBaseStyle(dropdownToken), genButtonStyle(dropdownToken), genStatusStyle(dropdownToken)];\n}, token => ({\n  zIndexPopup: token.zIndexPopupBase + 50\n}));"],"mappings":"AAAA,SAASA,cAAc,QAAQ,4BAA4B;AAC3D,SAASC,cAAc,EAAEC,eAAe,EAAEC,cAAc,EAAEC,WAAW,EAAEC,YAAY,EAAEC,SAAS,EAAEC,UAAU,QAAQ,oBAAoB;AACtI,SAASC,qBAAqB,EAAEC,UAAU,QAAQ,sBAAsB;AACxE,OAAOC,cAAc,MAAM,UAAU;AACrC,OAAOC,cAAc,MAAM,UAAU;AACrC,SAASC,aAAa,EAAEC,cAAc,EAAEC,YAAY,QAAQ,aAAa;AACzE;AACA,MAAMC,YAAY,GAAGC,KAAK,IAAI;EAC5B,MAAM;IACJC,YAAY;IACZC,OAAO;IACPC,WAAW;IACXC,qBAAqB;IACrBC,mBAAmB;IACnBC,cAAc;IACdC,MAAM;IACNC,OAAO;IACPC,iBAAiB;IACjBC,uBAAuB;IACvBC,QAAQ;IACRC,wBAAwB;IACxBC,iBAAiB;IACjBC,YAAY;IACZC,wBAAwB;IACxBC,eAAe;IACfC;EACF,CAAC,GAAGjB,KAA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